<template>
  <div>
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="按钮名称">
        <el-input v-model="form.System_8_20"></el-input>
      </el-form-item>
      <el-form-item label="按钮ID">
        <el-input v-model="form.System_8_30"></el-input>
      </el-form-item>
      <el-form-item label="顺序号">
        <el-input v-model="form.System_8_60"></el-input>
      </el-form-item>
      <el-form-item style="text-align:center" label-width="0">
        <el-button @click="onSave" type="primary">保存</el-button>
        <el-button @click="close">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { System8 } from "@/api";
export default {
  data() {
    return {
      form: {},
      thisDialog: {}
    };
  },
  methods: {
    close() {
      this.thisDialog.close();
    },
    async onSave() {
      let res = await System8.Save(this.form);
      if (res.strMS) {
        this.form.System_8_10 = parseInt(res.strMsId);
        this.$message(res.strMS);
      }
      this.thisDialog.$emit("onSys8Save", res, this.form);
    }
  }
};
</script>

<style></style>
